<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
	template="/layout/templateMini.xhtml">

	<ui:define name="body">
		<div id="page-wrap" >
		<h:form id="consulta">
			<label>Nome de Guerra: </label>
			<h:inputText value="#{consultaAction.corretor.nome}"  label="Nome de Guerra:" size="20" />
			<br />
			<h:commandButton value="Pesquisar" action="" />
			<br />
			<br />
			<h:messages id="messages" style="text-align:left;color:#EF5252; font-weight: bold;" globalOnly="true" styleClass="message"
			            		errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
			            		rendered="#{showGlobalMessages != 'false'}"/>
						<rich:dataTable
							onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
							onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
							cellpadding="0" cellspacing="0" width="700px" border="0"
							var="record" value="">
							 <f:facet name="header">
		                        <rich:columnGroup>
		                            <rich:column colspan="3">
		                                <h:outputText value="Corretores" />
		                            </rich:column>
		                            <rich:column breakBefore="true" width="590px" colspan="2">
		                                <h:outputText  value="Nome"  />
		                            </rich:column>
		                            <rich:column>
		                                <h:outputText value="Telefone" rendered="#{!corretor.bloquearCampoCreci}"/>
		                            </rich:column>
		                        </rich:columnGroup>
		                    </f:facet>
		                    
		                    </rich:dataTable>
		</h:form>
		</div>
	</ui:define>
</ui:composition>